extends Node2D

func _ready():
	#用来进行代码的初始化，运行的时候只会执行一次
	print("hello godot")
	pass
	
func _process(delta):
	if Input.is_action_pressed("ui_left"):
		$Player.position.x-=100*delta
	if Input.is_action_pressed("ui_right"):
		$Player.position.x+=100*delta
	if Input.is_action_pressed("ui_down"):
		$Player.position.y+=100*delta
	if Input.is_action_pressed("ui_up"):
		$Player.position.y-=100*delta
	
func _input(event):
	print("input")
	pass
